<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
  <head>
	<meta charset="UTF-8">
    <title>登录页面 - 狗东电商 GD.COM</title>
	<link href="../css/before/daohang.css" rel="stylesheet" type="text/css" />
	<link href="../css/before/common.css" rel="stylesheet" type="text/css" />
	<link href="../css/before/style.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
	table{
		text-align: center;
	}
	.textSize{
		width: 200px;
		height: 20px;
	}
	</style>
	<script type="text/javascript">
	//确定按钮
	function gogo(){
		document.loginform.submit();
	}
	//取消按钮
	function cancel(){
		document.loginform.action="";
	}
	function refreshCode(){
		document.getElementById("code").src = "/captcha?" + Math.random();
    }
	</script>
  </head>
  <body>
  	<iframe src="/head" width="100%" frameborder="0"> </iframe>
  	<center>
  	<form action="/user/handleLogin" method="post">
	<table>
		<tr>
            <td></td>
			<td><h2>用户登录</h2></td>
		</tr>
        <tr><td>&nbsp;</td></tr>
		<tr>
			<td>E-Mail：</td>
			<td>
                <input type="text" name="email" value=""  class="textSize"/>
            </td>
		</tr>
		<tr>
			<td>密码：</td>
			<td><input type="password" name="password" class="textSize"/></td>
		</tr>
		<tr>
			<td>验证码：</td>
			<td>
				<input type="text" name="captcha" class="textSize"/>
			</td>
            <td>
                <a href="javascript:refreshCode();"><img id="code" src="/captcha" /></a>
            </td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="submit" value="登录">
				<input type="reset">
			</td>
		</tr>
	</table>
	</form>
	</center>
  </body>
</html>
